package o;

import com.huawei.appgallery.foundation.card.base.bean.BaseDistCardBean;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse.LayoutData;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.hwid.core.constants.HwAccountConstants;

public class eei extends chi {
    protected void ˊ(cia o_cia, chd o_chd, BaseDetailResponse baseDetailResponse) {
        super.ˊ(o_cia, o_chd, baseDetailResponse);
        o_cia.ʽ().putInt("MaxPage", o_chd.ˏ());
    }

    protected int ˋ(LayoutData<CardBean> layoutData) {
        int i = 0;
        if (layoutData.ˊ() == 1) {
            i = 1;
        }
        if (layoutData.ॱ() == 1) {
            return i | 2;
        }
        return i;
    }

    protected void ˋ(chz o_chz, BaseCardBean baseCardBean) {
        super.ˋ(o_chz, baseCardBean);
        String ʽॱ;
        if (baseCardBean instanceof BaseDistCardBean) {
            ʽॱ = ((BaseDistCardBean) baseCardBean).ʽॱ();
            if (!o_chz.ʼ() && !dof.ॱ(ʽॱ) && ʽॱ.indexOf(".") > 0) {
                o_chz.ˏ(true);
            }
        } else if (Logger.ˎ()) {
            String str = "DistDataProviderCreator";
            StringBuilder append = new StringBuilder().append("bean not instanceof BaseDistCardBean : ");
            if (baseCardBean == null) {
                ʽॱ = HwAccountConstants.NULL;
            } else {
                ʽॱ = baseCardBean.getClass().getSimpleName();
            }
            Logger.ˏ(str, append.append(ʽॱ).toString());
        }
    }
}
